
import { defineStore } from 'pinia';
import { requestHosDetail } from '@/api/Home.ts';

let defineUseDetail = defineStore('detail', {

    state: () => {


        return {

            hosDetail: {}

        }
    },

    actions: {

        async getHos(code: any) {
            console.log("code", code);
            let response = await requestHosDetail(code);
            console.log("response", response);
            this.hosDetail = response.data;
            console.log("response11", this.hosDetail);
        }

    },

    getters: {}

})

export default defineUseDetail;
